<?php

  /**
   * @package JooS
   * @subpackage PHPackager
   */
  require_once "JooS/Stream/Interface.php";

  class JooS_PHPackager_FS_Stream implements JooS_Stream_Interface {
    /**
     * @var resource
     */
    public $context;

    public function __construct() {
    }

    public function dir_closedir() {
    }

    public function dir_opendir($path, $options) {
      /**
       * @path - полный путь, который передаётся в opendir
       * $options - игнорируем...
       * return TRUE if $path exists
       */
      return true;
    }

    public function dir_readdir() {
      /**
       * return string || FALSE
       */
      return false;
    }

    public function dir_rewinddir() {
    }

    public function mkdir($path, $mode, $options) {
    }

    public function rename($path_from, $path_to) {
    }

    public function rmdir($path, $options) {
    }

    public function stream_cast($cast_as) {
      return $this->context;
    }

    public function stream_read($count) {
    }

    public function stream_seek($offset, $whence = SEEK_SET) {
    }

    public function stream_tell() {
    }

    public function stream_eof() {
    }

    public function stream_write($data) {
    }

    public function stream_flush() {
    }

    public function stream_open($path, $mode, $options, &$opened_path) {
    }

    public function stream_close() {
    }

    public function stream_lock($operation) {
    }

    public function stream_set_option($option, $arg1, $arg2) {
    }

    public function stream_stat() {
    }

    public function unlink($path) {
    }

    public function url_stat($path, $flags) {
    }
  }
